﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using System.Windows.Media.Animation;

namespace DependencyView
{
  public partial class StartView : Window
  {
    public StartView()
    {
      InitializeComponent();
    }

    private void OnContentRendered(object sender, EventArgs e)
    {
      Storyboard story = FindResource("story") as Storyboard;
      ParallelTimeline title = story.Children[0] as ParallelTimeline;
      DoubleAnimation spanx = title.Children[0] as DoubleAnimation;
      spanx.From = ActualWidth;
      ParallelTimeline foot = story.Children[1] as ParallelTimeline;
      DoubleAnimation spanf = foot.Children[0] as DoubleAnimation;
      spanf.From = -ActualWidth;
      spanf.To = 0;
      BeginStoryboard(story);
    }

    private void OnQuit(object sender, RoutedEventArgs e)
    {
      Close();
    }
  }
}
